<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<!--logo-->
<div id="logo" class="row">
	<div class="col-md-6 col-xs-6" class="logoI">
		<img src="images/logo.png"
			style="margin-left: 0px; margin-top: 0px; float: left" />
	</div>
	<div class="col-md-6 col-xs-6">
		<ul>
			<li><a href="login.jsp" target="_blank">登录</a></li>
		</ul>
	</div>
</div>
<!--导航条-->
<div>
	<nav class="navbar navbar-inverse">
		<div class="container-fluid" style="background-color: #336699;">
			<div class="collapse navbar-collapse"
				id="bs-example-navbar-collapse-1">
				<ul class="nav navbar-nav">
					<li
						<c:if test="${empty category.categoryName}">class="active"</c:if>><a
						href="index.jsp">首页</a></li>

					<c:forEach items="${categoryList}" var="cat">
						<c:if test="${cat.home==1}">
							<li
								<c:if test="${category.categoryName==cat.categoryName}">class="active"</c:if>><a
								href="${pageContext.request.contextPath}/findNewsByCategoryIdPage.action?newsListCategoryId=${cat.categoryId}">${cat.categoryName}</a>
							</li>
						</c:if>
					</c:forEach>

				</ul>
				<form class="navbar-form navbar-right"
					action="${pageContext.request.contextPath}/findNewsByKeywordsPage.action"
					method="post">
					<div class="form-group">
						<input type="text" name="keywords" class="form-control"
							placeholder="输入关键词">
					</div>
					<button type="submit" class="btn btn-default">搜索</button>
				</form>
			</div>
		</div>
	</nav>
</div>